﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//武器类
public class Weapon : Item
{
    public int Damage;
    public ItemData.WeaponType weaponType;
    public int AttackDistance;


    public Weapon(int id, string name, ItemData.ItemType item, ItemData.QualityType quality, string description, string sprite, int Damage, ItemData.WeaponType weaponType, int Distance) : base(id, name, item, quality, description, sprite)
    {
        this.Damage = Damage;
        this.weaponType = weaponType;
        this.AttackDistance = Distance;
    }
    public Weapon(Item item, int Damage, ItemData.WeaponType weapon, int Distance) : base(item)
    {
        this.weaponType = weapon;
        this.Damage = Damage;
        this.AttackDistance = Distance;
    }
}
